package com.cmas.platform.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cmas.platform.domain.Post;
import com.cmas.platform.vo.CommentVo;
import com.cmas.platform.vo.PostVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.cmas.platform.domain.Comment;

import java.util.List;

/**
 * 评论管理Mapper接口
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-03-15
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment>
{

    /**
     * 批量删除评论管理
     * @param ids 需要删除的评论管理ID集合
     * @return
     */
    public int deleteCommentByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);



    public List<CommentVo> selectCommentVoList(@Param(Constants.WRAPPER) QueryWrapper<Comment> setQueryWrapper);

}
